﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UNSWThink
{
   /// <summary>
   /// Object that represents the Course entry in the database
   /// </summary>
   public class Course
   {
      private int id;
      private int subjectID;
      private int termID;

      /// <summary>
      /// Default constructor
      /// </summary>
      public Course()
      {
         id = 0;
         subjectID = 0;
         termID = 0;
      }

      /// <summary>
      /// Alternate constructor
      /// </summary>
      /// <param name="id">
      /// ID of the record
      /// </param>
      /// <param name="subjectID">
      /// ID of the related subject record
      /// </param>
      /// <param name="termID">
      /// ID of the related term record
      /// </param>
      public Course(int id, int subjectID, int termID)
      {
         this.id = id;
         this.subjectID = subjectID;
         this.termID = termID;
      }

      /// <summary>
      /// Gets or sets the ID
      /// </summary>
      public int ID
      {
         get
         {
            return id;
         }
         set
         {
            id = value;
         }
      }

      /// <summary>
      /// Gets or sets the subject ID
      /// </summary>
      public int SubjectID
      {
         get
         {
            return subjectID;
         }
         set
         {
            subjectID = value;
         }
      }

      /// <summary>
      /// Gets or sets the term ID
      /// </summary>
      public int TermID
      {
         get
         {
            return termID;
         }
         set
         {
            termID = value;
         }
      }
   }
}
